package com.cn.gz.liwy.datatype;

public class DataTypeBase  {

    private  String typeName ;

    private  String typeValueRange ;

    private  int typeSize ;

    private String typeDefaultVal;

    private String typePacketClass;

    public DataTypeBase(){
        out("调用父类无参构造器");
    }


    //TODO 描述继承和多态
    public DataTypeBase(DataTypeBase obj){
        out("调用父类有参构造器");
        out("下列是我对"+obj.typeName+"类型的认识：");
        out("============"+obj.typeName+"类型基本认知"+"============");
        out(obj.typeName+"类型的取值范围："+obj.typeValueRange);
        out(obj.typeName+"类型在计算机系统中所占空间是："+obj.typeSize+"位,"+obj.typeSize/8+"字节");
        out(obj.typeName+"类型作为成员变量时构造器会将其初始为："+obj.typeDefaultVal);
        out(obj.typeName+"类型的包装类是："+obj.typePacketClass);
    }


    public void out(String outInfo) {
        System.out.println(outInfo);
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeValueRange() {
        return typeValueRange;
    }

    public void setTypeValueRange(String typeValueRange) {
        this.typeValueRange = typeValueRange;
    }

    public int getTypeSize() {
        return typeSize;
    }

    public void setTypeSize(int typeSize) {
        this.typeSize = typeSize;
    }

    public String getTypeDefaultVal() {
        return typeDefaultVal;
    }

    public void setTypeDefaultVal(String typeDefaultVal) {
        this.typeDefaultVal = typeDefaultVal;
    }

    public String getTypePacketClass() {
        return typePacketClass;
    }

    public void setTypePacketClass(String typePacketClass) {
        this.typePacketClass = typePacketClass;
    }
}
